<div ng-controller="CouponsCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'优惠券'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/coupons/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"></span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'title'|translate}}</th>
                <th>{{'面额'|translate}}</th>
                <th>{{'总张数'|translate}}</th>
                <th>{{'每个人领取的张数'|translate}}</th>
                <th>{{'订单总额'|translate}}</th>
                <th>{{'优惠范围'|translate}}</th>
                <th>{{'剩余时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in coupon_list">
                <td>{{list.coupon_id}}</td>
                <td>
                    {{list.name}}
                    <br /> {{list.start_time | ddtt}} - {{list.end_time | ddtt}}
                </td>
                <td>
                    <span ng-if="list.type_id==1">打 {{list.discount}} 折</span>
                    <span ng-if="list.type_id==2">减 {{list.denomination}} 元</span>
                </td>
                <td>{{list.coupon_count}}</td>
                <td>{{list.person_limit_count==0?'不限制领取张数':list.person_limit_count}}</td>
                <td>{{list.condition}}</td>
                <td>{{list.ptype == 1?"全店":"部分商品"}}</td>
                <td>
                    {{list.diff_time}}
                </td>
                <td>
                    <a href="#/coupons/add?coupon_id={{list.coupon_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>